goodsList = [
    {"name":"快乐肥宅水","price":"3.0"},
    {"name":"茉莉清茶","price":"2.0"},
    {"name":"红茶","price":"4.0"}
            ]
def search(goodsName):
    for goods in goodsList:
        if goods["name"] == goodsName:
            return {"status":200,"msg":"商品存在","data":goods["name"]}

    return {"status":400,"msg":"商品不存在"}

print(search("快乐肥宅水"))